package com.bookxml;

import com.bookxml.service.BookShopService;
import com.bookxml.service.Cashier;

import java.util.List;

/**
 * Created by Admin on 9/19 0019.
 */
public class CashierImp implements Cashier {

    private BookShopService bookShopService;

    public void setBookShopService(BookShopService bookShopService) {
        this.bookShopService = bookShopService;
    }

    public void checkout(String username, List<String> isbns) {
        for(String str:isbns){
            bookShopService.getBook(username,str);
        }
    }
}
